package Day11.File;

import java.io.File;

public class Lian01 {
    public static void main(String[] args) {


//        method1();
//        method2();
//        method3();
    }

    private static void method3() {
        File file=new File("H\\itheima");
        String path="a.txt";
        File file1=new File(file,path);
        System.out.println(file1);
    }

    private static void method2() {
        String path1="H\\itheima";
        String path2="a.txt";
        File file=new File(path1,path2);
        System.out.println(file);
    }

    private static void method1() {
        String path="H:\\a.txt";
        File file=new File(path);
    }
}
